/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.elec.ad.entity;

import org.hibernate.validator.constraints.Length;

import cn.net.ecode.common.persistence.DataEntity;

/**
 * 广告项列表Entity
 * @author AlanShelby
 * @version 2019-08-26
 */
public class ElecAdList extends DataEntity<ElecAdList> {
	
	private static final long serialVersionUID = 1L;
	private String adId;		// 父编码
	private String title;		// 标题
	private String image;		// 图片地址
	private String content;		// 内容
	private Integer sorts;		// 排序号
	
	public ElecAdList() {
		super();
	}

	public ElecAdList(String id){
		super();
		this.id = id;
	}

	@Length(min=0, max=100, message="父编码长度不能超过 100 个字符")
	public String getAdId() {
		return adId;
	}

	public void setAdId(String adId) {
		this.adId = adId;
	}
	
	@Length(min=0, max=64, message="标题长度不能超过 64 个字符")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=255, message="图片地址长度不能超过 255 个字符")
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
	@Length(min=0, max=255, message="内容长度不能超过 255 个字符")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public Integer getSorts() {
		return sorts;
	}

	public void setSorts(Integer sorts) {
		this.sorts = sorts;
	}
	
}